//
//  ClubcourseModel.swift
//  约健
//
//  Created by tyh on 2017/10/12.
//  Copyright © 2017年 tyh. All rights reserved.
//
/*
"id":"1",
"course_name":"乒乓球基础训练",
"course_price":"100",
"introduction":"<p>乒乓球基础训练</p>",
"notice":"<p>乒乓球基础训练</p>",
"bmnotice":"乒乓球基础训练",
"start_date":"2016-03-01 00:00:00",
"end_date":"2016-08-31 00:00:00",
"thumb":"course/thumb/20161205/thumb_20161205100248_1554266032.jpg",
"degree":"1"
 */
import UIKit

class ClubcourseModel: NSObject {
    var id:NSString!
    var course_name:NSString!
    var course_price:NSString!
    var introduction:NSString!
    var notice:NSString!
    var bmnotice:NSString!
    var start_date:NSString!
    var end_date:NSString!
    var thumb:NSString!
    var degree:NSString!
    
    class func CourseModelWithDict(_ dict:NSDictionary)-> ClubcourseModel{
        let model = ClubcourseModel()
        
        model.setValuesForKeys(dict as! [String: NSObject])
        /*
        model.id = dict.value(forKey: "id") as! NSString!
        model.course_name = dict.value(forKey: "course_name") as! NSString!
        model.course_price = dict.value(forKey: "course_price") as! NSString!
        model.introduction = dict.value(forKey: "introduction") as! NSString!
        model.notice = dict.value(forKey: "notice") as! NSString!
        model.bmnotice = dict.value(forKey: "bmnotice") as! NSString!
        model.start_date = dict.value(forKey: "start_date") as! NSString!
        model.end_date = dict.value(forKey: "end_date") as! NSString!
        model.thumb = dict.value(forKey: "thumb") as! NSString!
        model.degree = dict.value(forKey: "degree") as! NSString!
        */
        return model
        
    }

    
}
